package com.ohuang.baseapp.mvp;

import com.ohuang.baseapp.base.BaseFragment;

public abstract class BaseMvpFragment<T extends BasePresenter> extends BaseFragment {
    protected T mPresenter;

    @Override
    protected void onDestroyComponent() {
        super.onDestroyComponent();
        if (mPresenter != null) {
            mPresenter.detachView();
        }
    }
}
